package com.dhj.yygh.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/*
医院模块配置类
 */
@MapperScan("com.dhj.yygh.mapper")
@Configuration
public class HospitalConfig {

    // 添加分页插件
    @Bean
    public PaginationInterceptor getPaginationInterceptor() {
        return new PaginationInterceptor();
    }
}
